In [1]:
import requests
In [2]:
req = requests.head('http://www.google.com')
print(req.headers['Content-Length'])
In [3]:
req = requests.get('http://www.google.com')
print(req.headers['Content-Length'])
Show benchmarks
In [ ]: